﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kopain2
{

    /// <summary>This class is for executing commands bound through CommandBinding.
    /// http://colbycavin.spaces.live.com/blog/cns!5FFDF795EBC7BEDF!129.entry
    /// </summary>
    public static class Kopain2Commands
    {

        private static object syncRoot = new object();

        private static System.Windows.Input.RoutedUICommand _about = null;

        /// <summary>This is the About command.
        /// </summary>
        public static System.Windows.Input.RoutedUICommand About
        {
            get
            {
                lock (syncRoot)
                {
                    if (null == _about)
                    {
                        _about = new System.Windows.Input.RoutedUICommand("Exit", "Exit", typeof(Kopain2Commands));
                        //_about.InputGestures.Add(new System.Windows.Input.KeyGesture(System.Windows.Input.Key.Q, System.Windows.Input.ModifierKeys.Control));
                    }
                    return _about;
                }
            }
        }

    }

}